import YingUi from '../../../packages/index.ts';
import DefaultTheme from 'vitepress/theme'
// import '../../../packages/theme/index';
// 导入vitepress-theme-demoblock主题，并注册组件(包含主题中默认的组件)
// import Theme from 'vitepress/dist/client/theme-default'

// 导入主题样式
import 'vitepress-theme-demoblock/theme/styles/index.css'
// 导入插件的主题
import { registerComponents } from './register-components.js'
import selfTheme from './self_theme.css';
export default {
  ...DefaultTheme,
  ...selfTheme,
  NotFound: () => 'custom 404', // <- this is a Vue 3 functional 
  enhanceApp({ app, router, siteData }) {
    app.use(YingUi)
    registerComponents(app)
  }
}